home *** CD-ROM | disk | FTP | other *** search
/ Champak 120 / Vol 120.iso / games / space_bo.swf / scripts / DefineSprite_197 / frame_12 / DoAction.as
Encoding:
Text File  |  2010-11-09  |  264 b   |  16 lines

  1. this._x += _parent.speed;
  2. this._y += moveY;
  3. moveY += 3;
  4. panPos = int((this._x - 275) / 2.75);
  5. volPos = 80 - Math.abs(panPos / 2);
  6. sfxAlien.setPan(panPos);
  7. sfxAlien.setVolume(volPos);
  8. if(this._y > 450)
  9. {
  10.    gotoAndPlay(2);
  11. }
  12. else
  13. {
  14.    prevFrame();
  15. }
  16.